
import 'package:flutter/material.dart';

class MyTabbar_item extends BottomNavigationBarItem{

  MyTabbar_item(String titleStr,String iconName,{double width = 30}):super(

      title: Text('$titleStr'),
      icon: Image.asset(
        'assets/tabbar/$iconName.png',
        width: width,
      ),
      activeIcon: Image.asset(
        'assets/tabbar/${iconName}_active.png',
        width: width,
      )
  );

}